﻿@model UscSunShine.Models.Request

<link href="@Url.Content("~/Content/bootstrap-select.css")" rel="stylesheet" type="text/css" />
@{
    ViewBag.Title = "我有话说";
}
<!--
    <h2>Create</h2>
-->
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <div class="jumbotron font-detail">
        <div class="container">
            <center>
                <table class="table table-bordered" style="border-color:#3399ff;border-width:1px;width:900px;">
                    <tbody>
                        <tr>
                            <td align="left">
                                <ol class="numList">
                                    <li>欢迎您为南华大学发展建言献策。</li>
                                    <li>请您认真填写带＊的必写栏目。</li>
                                    <li>信件提交后，受理单位将在规定期限内办复，即一般问题1~3个工作日办复；情况复杂的有可能适当延长，但最长不会超过7个工作日。</li>
                                    <li>相同内容信件请勿重复提交或一信多投，即对重复提交的，如该问题正在受理期内将不再重复受理。</li>
                                </ol>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table id="createTable" class="table table-bordered" style="border-color:red;border-width:0px;width:900px;">
                    <tbody>
                        @Html.ValidationSummary(true)

                        <tr>
                            <td style="width: 110px; vertical-align: middle">
                                <strong>申请类别</strong>
                            </td>
                            <td>
                                <div>
                                    @Html.EnumDropDownListFor(model=>model.RequestCategory)
                                    @Html.ValidationMessageFor(model => model.RequestCategory)
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 110px; vertical-align: middle">
                                <strong>受理单号</strong>
                            </td>
                            <td>
                                <div>
                                    @Html.TextBoxFor(m => Model.AcceptNumber, new { @readonly = "readonly" })
                                    @*@Html.ValidationMessageFor(model => model.AcceptNumber)*@
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 110px; vertical-align: middle;">
                                <strong>主题</strong>
                            </td>
                            <td>
                                <div class="form-inline">
                                        @Html.TextBoxFor(model => model.Title)
                                        <span style="color:red">*</span>
                                </div>
                            </td>
                        </tr>

                        <tr>
                            <td style="width: 110px; vertical-align: middle; ">
                                <strong>正文</strong>
                            </td>
                            <td>
                                <div class="form-inline">
                                    @Html.TextAreaFor(model => model.Content)<span style="color:red">*</span>
                                    @Html.ValidationMessageFor(model => model.Content)
                                </div>
                            </td>
                        </tr>

                        <tr>
                            <td style="width: 110px; vertical-align: middle; ">
                                <strong>用户名称</strong>
                            </td>
                            <td>
                                <div class="form-inline">
                                    @Html.EditorFor(model => model.Username)<span style="color:red">*</span>
                                    @Html.ValidationMessageFor(model => model.Username)
                                </div>
                            </td>
                        </tr>

                        <tr>
                            <td style="width: 110px; vertical-align: middle;">
                                <strong>联系电话</strong>
                            </td>
                            <td>
                                <div class="form-inline">
                                    @Html.EditorFor(model => model.ContactPhone)<span style="color:red">*</span>
                                    @Html.ValidationMessageFor(model => model.ContactPhone)
                                </div>
                            </td>
                        </tr>

                        <tr>
                            <td style="width: 110px; vertical-align: middle; ">
                                <strong>电子邮件</strong>
                            </td>
                            <td>
                                <div class="form-inline">
                                    @Html.EditorFor(model => model.Email)<span style="color:red">*</span>
                                    @Html.ValidationMessageFor(model => model.Email)
                                </div>
                            </td>
                        </tr>

                        <tr>
                            <td style="width:110px;vertical-align:middle">
                                <strong>期望解决日期</strong>
                            </td>
                            <td>
                                <div class="form-inline">
                                    @Html.EditorFor(model => model.ExpectResolveDate)
                                    <span style="color:red">*</span>
                                    @Html.ValidationMessageFor(model => model.ExpectResolveDate)
                                </div>
                            </td>
                        </tr>

                    </tbody>
                </table>
                <table>
                    <tr>
                        <td>
                            <button type="submit" class="btn btn-info btn-lg" style="padding-bottom:2px;padding-top:2px;">提  交</button>
                            @*<a href="~/Request/Index" class="btn btn-info btn-lg" style=" padding-left: 20px; padding-right: 20px; padding-top: 6px; padding-bottom: 6px;">返回</a>*@
                            <!--
                                <input type="submit" value="新建" class="btn btn-default" />
                            -->
                        </td>
                    </tr>
                </table>
            </center>
        </div>
    </div>
}
<!--
    <div>
    @Html.ActionLink("返回列表", "Index")
</div>
-->
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <link rel="stylesheet" href="~/KindEditor/themes/default/default.css" />
    <link rel="stylesheet" href="~/KindEditor/plugins/code/prettify.css" />
    <script charset="utf-8" src="~/KindEditor/kindeditor-min.js"></script>
    <script type="text/javascript" src="~/KindEditor/lang/zh_CN.js"></script>
    <script charset="utf-8" src="~/KindEditor/plugins/code/prettify.js"></script>
    <script type="text/javascript" src="~/Scripts/usc-content.js"></script>
}
<script src="@Url.Content("~/Scripts/jquery-2.1.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/bootstrap-select.min.js")" type="text/javascript"></script>
<script>
    $('select').selectpicker();
    $('input').addClass('form-control');
    $('#Title').css("width", "100%");
</script>
